package com.zhao.consumer.demo;

import com.zhao.common.SampleService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author pingxx
 * @version 1.0
 * @date 2020/5/13 11:35 上午
 */
@RestController
public class SampleController {

    @Reference(version = "1.0.0", check = false)
    private SampleService sampleService;

    @RequestMapping("/process/{message}")
    public String process(@PathVariable("message") String message) {
        return sampleService.sayHello(message);
    }
}
